/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-07-26 17:45:29
 * Copyright (c) 2015- -版权所有
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpDeviceFacilityStopRecoverRecord;

import com.joysuch.wwyt.bp.bean.BpDeviceFacilityStopRecoverRecordDetailBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityStopRecoverRecordEditBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityStopRecoverRecordListBean;
import static com.joysuch.wwyt.bp.bean.BpDeviceFacilityStopRecoverRecordListBean.SearchBpDeviceFacilityStopRecoverRecord;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpDeviceFacilityStopRecoverRecordService {

    public BpDeviceFacilityStopRecoverRecord add(BpDeviceFacilityStopRecoverRecordEditBean entity);

    void update(BpDeviceFacilityStopRecoverRecordEditBean entity);

    Page<BpDeviceFacilityStopRecoverRecordListBean> findByPage(Pageable page,SearchBpDeviceFacilityStopRecoverRecord condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpDeviceFacilityStopRecoverRecordDetailBean getById(Long id);

    BpDeviceFacilityStopRecoverRecord findById(Long id);

    void deleteById(Long recordId);

    /**
     * 批量启停 设置
     * @param entity
     */
    void batchAdd(BpDeviceFacilityStopRecoverRecordEditBean entity);
}
